#ifndef CCONNECTREPLYMSG_H
#define CCONNECTREPLYMSG_H

#include "netmsg.h"
#include <QString>

class CConnectReplyMsg : public CNetMsg
{
public:
    CConnectReplyMsg();

	// does the server accept the client's connection?
	void setConnectionAccepted(bool bAccept);
	bool getConnectionAccepted() const;

	// ... if not, what was the error string?
	void setConnectionErrorString(const QString strError);
	QString getConnectionErrorString() const;

	// OTOH, if it was accepted, get the config payload:
	void setConfigPayload(const QString &strConfigXML);
	QString getConfigPayload() const;


protected:
	void serialiseToStream(QDataStream&) const;
	void serialiseFromStream(QDataStream&);

private:
	bool m_bAccepted;
	QString m_strError;
	QString m_strConfig;
};

#endif // CCONNECTREPLYMSG_H
